home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / jcool01.zip / TIMEZONE.H < prev    next >
C/C++ Source or Header  |  1992-08-25  |  3KB  |  71 lines

  1. //
  2. // Copyright (C) 1991 Texas Instruments Incorporated.
  3. //
  4. // Permission is granted to any individual or institution to use, copy, modify,
  5. // and distribute this software, provided that this complete copyright and
  6. // permission notice is maintained, intact, in all copies and supporting
  7. // documentation.
  8. //
  9. // Texas Instruments Incorporated provides this software "as is" without
  10. // express or implied warranty.
  11. //
  12. //
  13. // Created: MBN 04/11/89 -- Initial design and implementation
  14. // Updated: DLS 03/22/91 -- New lite version
  15. // Updated: JAM 08/24/92 -- made static array global and moved to .c
  16. //
  17. // This file contains an  enum  definition  for  type timezone.  It  specifies
  18. // symbolic  constants to be used as  timezone  types.  Note that C++ does not
  19. // distinguish between an  enum type and  an integer, so function arguments of
  20. // type `timezone' are really just `int' types.
  21.  
  22. #ifndef TIMEZONEH        // If we have not yet defined the timezone type,
  23. #define TIMEZONEH        // Indicate that timezone has been included
  24.  
  25. enum time_zone {            // Time zone specification
  26.   UNKNOWN_TIME_ZONE,            // Unknown time zone
  27.   US_EASTERN,                // Eastern time zone, USA
  28.   US_CENTRAL,                // Central time zone, USA
  29.   US_MOUNTAIN,                // Mountain time zone, USA
  30.   US_PACIFIC,                // Pacific time zone, USA
  31.   US_PACIFIC_NEW,            // Pacific time zone, USA with DST
  32.   US_YUKON,                // Yukon time zone, USA
  33.   US_EAST_INDIANA,            // Estern time zone, USA with no DST
  34.   US_ARIZONA,                // Mountain time zone, USA with no DST
  35.   US_HAWAII,                // Hawaii
  36.   CANADA_NEWFOUNDLAND,            // Newfoundland
  37.   CANADA_ATLANTIC,            // Atlantic time zone, Canada
  38.   CANADA_EASTERN,            // Eastern time zone, Canada
  39.   CANADA_CENTRAL,            // Central time zone, Canada
  40.   CANADA_EAST_SASKATCHEWAN,        // Central time zone, Canada with no DST
  41.   CANADA_MOUNTAIN,            // Mountain time zone, Canada
  42.   CANADA_PACIFIC,            // Pacific time zone, Canada
  43.   CANADA_YUKON,                // Yukon time zone, Canada
  44.   GB_EIRE,                // Great Britain and Eire
  45.   WET,                    // Western Europe time
  46.   ICELAND,                // Iceland
  47.   MET,                    // Middle Europe time
  48.   POLAND,                // Poland
  49.   EET,                    // Eastern Europe time
  50.   TURKEY,                // Turkey
  51.   W_SU,                    // Western Soviet Union
  52.   PRC,                    // People's Republic of China
  53.   KOREA,                // Republic of Korea
  54.   JAPAN,                // Japan
  55.   SINGAPORE,                // Singapore
  56.   HONGKONG,                // Hongkong
  57.   ROC,                    // Republic of China
  58.   AUSTRALIA_TASMANIA,            // Tasmainia, Australia
  59.   AUSTRALIA_QUEENSLAND,            // Queensland, Australia
  60.   AUSTRALIA_NORTH,            // Northern Territory, Australia
  61.   AUSTRALIA_WEST,            // Western Australia
  62.   AUSTRALIA_SOUTH,            // South Australia
  63.   AUSTRALIA_VICTORIA,            // Victoria, Australia
  64.   AUSTRALIA_NSW,            // New South Wales, Australia
  65.   NZ                    // New Zealand
  66. };
  67.  
  68. extern const char* const tz_table[];
  69.  
  70. #endif                        // End #ifdef of TIMEZONEH
  71.